#include <stdlib.h>
#include <stdio.h>
#include <SDL.h>
#include "instruction.h"
int main(int argc, char *argv[])
{
    SDL_Surface *ecran = NULL, *menu = NULL;
    SDL_Rect positionMenu;
    positionMenu.x = 0;
    positionMenu.y = 0;

    SDL_Event event;
    int continuer = 1;
    SDL_Init(SDL_INIT_VIDEO);

    ecran = SDL_SetVideoMode(800, 600, 32, SDL_HWSURFACE );

    menu = SDL_LoadBMP("menu.bmp");
SDL_Flip(ecran);


while (continuer)
    {
        SDL_WaitEvent(&event);
        switch(event.type)
        {
        case SDL_QUIT:
            continuer = 0;

            break;
        case SDL_KEYDOWN:
            switch(event.key.keysym.sym)
            {
            case SDLK_ESCAPE:
                continuer=0;
                break;

                //case SDLK_KP1:
                //niveau(ecran);
                //break;
        //    case SDLK_KP2:
                instruction(ecran);
          //      break;
                //case SDLK_KP3:
                //  Meilleur_score(ecran);
                //break;
                //case SDLK_KP4:
                // langue(ecran);
                //break;
            }
            break;
        }

        SDL_FreeSurface(menu);
        SDL_Quit();
    }
    return EXIT_SUCCESS;
}

